package com.lyc.day1031.demo3;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/10/31 17:29
 * @description：
 * @modified By：
 * @version:
 */
public class Text {
    public static void main(String[] args) {
        BackCard backCard = new BackCard(0);
        Boy boy = new Boy(backCard);
        Girl girl = new Girl(backCard);

        Thread t1 = new Thread(boy, "臣哥哥");
        Thread t2 = new Thread(girl, "小诗诗");

        t1.start();
        t2.start();
    }
}